package com.kfh.ybracelet.sort;

import android.os.Parcel;
import android.os.Parcelable;

public class SortModel implements Parcelable {

    public String name;   //昵称
    public String url; //头像的url
    public String topic; //topic
    public String phone; //电话号码

    public String sortLetters;  //显示数据拼音的首字母

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.url);
        dest.writeString(this.topic);
        dest.writeString(this.phone);
        dest.writeString(this.sortLetters);
    }

    public SortModel() {
    }

    protected SortModel(Parcel in) {
        this.name = in.readString();
        this.url = in.readString();
        this.topic = in.readString();
        this.phone = in.readString();
        this.sortLetters = in.readString();
    }

    public static final Parcelable.Creator<SortModel> CREATOR = new Parcelable.Creator<SortModel>() {
        public SortModel createFromParcel(Parcel source) {
            return new SortModel(source);
        }

        public SortModel[] newArray(int size) {
            return new SortModel[size];
        }
    };
}
